/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services;

import facade.InversorFacadeLocal;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author ari
 */
@WebService(serviceName = "InversorWebService")
public class InversorWebService {
    @EJB
    private InversorFacadeLocal ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "isUsuario")
    public boolean isUsuario(@WebParam(name = "login") String login, @WebParam(name = "clave") String clave) {
        return ejbRef.isUsuario(login, clave);
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "createUsuario")
    public boolean createUsuario(@WebParam(name = "name") String name, @WebParam(name = "pass") String pass) {
        //TODO write your implementation code here:
        return ejbRef.createUsuario(name, pass);
    }
    
}
